//
//  AYReadParser.h
//  SuiXin
//
//  Created by mac on 2023/10/18.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

#define kTopMargin (YNUM(50)+[UIView safeTopBar])
#define kBottomMargin (YNUM(50)+[UIView safeBottomBar])
#define kLeftMargin YNUM(20)
#define kRightMargin YNUM(20)

@interface AYReadParser : UIView
+(void)paginateWithContent:(NSString *)content charpter:(NSString *)charpter bounds:(CGRect)bounds complete:(void(^)(NSAttributedString *content,NSArray *pages))complete;


+(NSString *)getShowContent:(NSString *)content charpter:(NSString *)charpter;

/// 解析内容属性
+(NSDictionary *)paraserFontArrribute:(AY_ReadManager *)config;

/// 解析章节属性
+(NSDictionary *)paraserChapterFontArrribute:(AY_ReadManager *)config;
@end

NS_ASSUME_NONNULL_END
